#ifndef APRIORI_H
#define APRIORI_H

#include <QList>
#include <QDebug>

#include "session.h"

class Apriori
{
public:
    Apriori();

    void setMinSupport(double minSupport);
    void setMinConfidence(double minConfidence);

    void setSessions(QList<Session *> *sessions);
    void test();

    double support(QPair<QStringList, QStringList> pages);
    double confidence(QPair<QStringList, QStringList> pages);

    double support(QStringList pages);

    void findAllCandidats();

private:
    double minSupport;
    double minConfidence;

    QList<Session *> *sessions;
};

#endif // APRIORI_H
